﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mindfor.Web.Data;

namespace Mindfor.Web.Modules.Pages
{
	/// <summary>
	/// Contains data for Page/EditRoles partial view.
	/// </summary>
	public class PageEditRolesData
	{
		/// <summary>
		/// Gets or sets site roles list.
		/// </summary>
		public IEnumerable<Role> Roles { get; set; }

		/// <summary>
		/// Gets or sets if anonymous access selected.
		/// </summary>
		public bool SelectedAnonymous { get; set; }

		/// <summary>
		/// Gets or sets if authorized access selected.
		/// </summary>
		public bool SelectedAuthorized { get; set; }

		/// <summary>
		/// Gets or sets role names that are selected.
		/// </summary>
		public IEnumerable<string> SelectedRoles { get; set; }

		/// <summary>
		/// Gets or sets if fields are enabled.
		/// </summary>
		public bool IsEnabled { get; set; }

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		public PageEditRolesData()
		{
			Roles = new List<Role>();
			SelectedAnonymous = true;
			SelectedAuthorized = true;
			SelectedRoles = new List<string>();
			IsEnabled = true;
		}
	}
}
